<?php
/**
 * @author Eni
 * @version 0.1.1
 */
class Model_Resource extends Pidguin_Db_Table_Abstract
{
	/**
	 * Table name
	 *
	 * @var string
	 */
	protected $_name = 'resources';
	
	protected $_dependentTables = array('Model_Access');
	
	protected $_referenceMap = array(
		'Module' => array(
			'columns' => 'module_id',
			'refTableClass' => 'Model_Module',
			'refColumns' => 'id'
		)
	);
	
	/**
	 * @var int
	 */
	protected $_guestId = null;
	
	/**
	 * Instance of class
	 *
	 * @var Model_Resource
	 */
	private static $_instance = null;
	
	/**
	 * Get instance of class
	 *
	 * @return Model_Resource
	 */
	public static function getInstance()
	{
		if (self::$_instance === null) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
}